home *** CD-ROM | disk | FTP | other *** search
- { View 50-lines screen in Text Mode }
- { Coded '95 by Paradise, 1995.III.3 }
- { Lublin, Poland }
- { paradise@bachus.umcs.lublin.pl }
- { }
- { Example : Include picture exe file }
- { }
- { Need : piccy.obj (converted by "BINOBJ picture.bin piccy.obj PicData" ) }
- { }
-
- {$L piccy.obj}
- procedure PicData; external;
-
- procedure OpenMode50L; assembler;
- asm
- mov ax, 1202h
- mov bl, 30h
- int 10h
- mov ax, 3h
- int 10h
- mov ax, 1112h
- mov bl, 0
- int 10h
- end;
-
- procedure CloseMode; assembler;
- asm
- mov ax,0003h
- int 10h
- end;
-
- procedure ShowPiccy;
- begin
- move(mem[seg(PicData):ofs(PicData)],mem[$B800:0],8000);
- end;
-
- procedure ShowPiccyAsm; assembler;
- asm
- push ds
- mov ax,seg PicData
- mov ds,ax
- mov si,offset PicData
- mov ax,0b800h
- mov es,ax
- xor di,di
- mov cx,8000/2
- cld
- rep movsw
- pop ds
- end;
-
- procedure WaitEsc; assembler;
- asm
- @escnopressed:
- in al,60h
- cmp al,1
- jne @escnopressed
- end;
-
- begin
- OpenMode50L;
- ShowPiccyAsm;
- WaitEsc;
- CloseMode;
- end.